package com.summer.data.table.column;

import com.summer.data.table.BaseColumn;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author 345480567@qq.com
 */

public class FloatColumn extends BaseColumn<Float> {

    public FloatColumn(String colName) {
        super(colName);
    }

    @Override
    public void fetchNotNullValue(ResultSet resultSet, Integer index) throws SQLException {
        value = getValue(resultSet, index);
    }

    public static Float getValue(ResultSet resultSet, Integer index) throws SQLException {
        Float value = resultSet.getFloat(index);
        return value;
    }

}
